package adsf.adminisadsf.gugedianzishichang.global;

import android.app.Application;
import android.content.Context;
import android.os.Handler;
import android.os.Process;

/**
 * Created by administrator on 17/5/9.
 */

public class GooglePlayAplaytion extends Application
{

    private static Context context;
    private static Handler handler;
    private static int mainThreadId;

    @Override
    public void onCreate() {
        super.onCreate();

        context = getApplicationContext();
        handler = new Handler();
        mainThreadId = Process.myTid();     //获取主线程id
    }

    public static Context getContext()
    {
        return context;
    }

    public static Handler getHandler()
    {
        return handler;
    }

    public static int getMainThreadId()
    {
        return mainThreadId;
    }


}
